<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}
	<div class="container containerUser fix pt15">
		<div class="userMain mgb10">
            <ul class="queue">
                <li class="now">
                    <span>验证安全码</span>
                    <i></i>
                </li>
            	<li class="now">
                    <span>设置安全码</span>
                    <i></i>
                </li>
                <li>
                    <span>完成</span>
                    <i></i>
                </li>
            </ul>
            <form action="?m={$m}&c={$c}&a=setSafePwd" method="post" id="safeform">
            	<input type="hidden" name="operation" value="setsafe"/>
                <ul class="submitContent mglr30 mgt15">
                    <li>
                        <span>安全密码：</span>
                        <input tag="安全密码" regmsg="安全密码应为6-16位字符" autocomplete="off" placeholder="请输入安全密码" class="userInput" type="password" name="safepwd" id="safepwd"/>
                    </li>
                    <li>
                        <span>确认密码：</span>
                        <input tag="确认密码" regmsg="确认密码应为6-16位字符" autocomplete="off" placeholder="请再次输入安全密码" class="userInput _no_paste" type="password" name="safepwd_again" id="safepwd_again" />
                    </li>
                    <li>
                        <span></span>
                        <a class="submitBtn"> 确定</a>
                    </li>
                </ul>
            </form>
        </div>
	</div>
{template member/footer}
<script>
	$('.submitBtn').on('click', '', function (){
		// 检查表单填写内容是否有误
		var fm = $('#safeform');
		fm.submit();
	})
	$('#safeform').on('submit', '', function (){
		if(this.safepwd.value != this.safepwd_again.value){
			layer.alert('两次输入不一致');
			return false;
		}
		return true;
	})
</script>